/**
 * 用户提醒设置管理初始化
 */
var MsgUserSetting = {};

$(function () {
	$('input[type="checkbox"]').on('ifChecked', function(event){
		var settingId = $(event.target).attr("name").split("_")[1];
		var pushType = $(event.target).val();
		Sys.ajax(Sys.backendPath+"/msgcenter/usersetting/addType",{settingId:settingId,pushType:pushType});
	});
	$('input[type="checkbox"]').on('ifUnchecked', function(event){
		var settingId = $(event.target).attr("name").split("_")[1];
		var pushType = $(event.target).val();
		Sys.ajax(Sys.backendPath+"/msgcenter/usersetting/delType",{settingId:settingId,pushType:pushType});
	});
});
